

import java.rmi.RMISecurityManager;

import javax.naming.*;

public class ActionHouseClient
{
	public static void main(String[] args)
	{
		System.setProperty("java.security.policy", "client.policy");
			System.setSecurityManager(new RMISecurityManager());
			
			String url = "rmi://localhost/";
			// change to "rmi://yourserver.com/" when server runs on
			// remote machine yourserver.com
			try {
				Context namingContext = new InitialContext();
				PriceList c1 = (PriceList) namingContext.lookup( url + "pricelist");


				System.out.println( c1.getPriceList() );
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
}

